package movielens;

import histogram.RatingHistogram;

import java.io.IOException;

import file.File2DataList;

public class MovieLensRH {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		File2DataList dataset = new File2DataList("C:\\Users\\mtnguyen.2012\\Downloads\\ml-1m\\ml-1m\\ratings.dat","::");
		RatingHistogram rh = new RatingHistogram(dataset.getList());
		System.out.println("Number of rating-1: "+rh.getNumRating()[0]);
		System.out.println("Number of rating-2: "+rh.getNumRating()[1]);
		System.out.println("Number of rating-3: "+rh.getNumRating()[2]);
		System.out.println("Number of rating-4: "+rh.getNumRating()[3]);
		System.out.println("Number of rating-5: "+rh.getNumRating()[4]);
	}

}
